package zhongbo.java.air;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.servlet.server.ServletWebServerFactory;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import zhongbo.java.air.config.RedisListenerConfig;

@SpringBootApplication
@Slf4j
@MapperScan("zhongbo.java.air.mapper")
@EnableCaching
public class AirFlightPathMain {
    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(AirFlightPathMain.class);
        log.info("---- success ---- {}", applicationContext);
    }
}